<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
     <form action="/search-post/" method="post">
         {% csrf_token %}
         <input type="text" name="q">
         <input type="submit" name="搜索">

     </form>
    <p>{{ result }}</p>

</body>
</html>